// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.ai.states;

import zombie.ai.State;
import zombie.characters.IsoGameCharacter;
import zombie.core.skinnedmodel.advancedanimation.AnimEvent;

public final class PlayerExtState extends State {
    private static final PlayerExtState _instance = new PlayerExtState();

    public static PlayerExtState instance() {
        return _instance;
    }

    @Override
    public void enter(IsoGameCharacter owner) {
        owner.setVariable("ExtPlaying", true);
    }

    @Override
    public void execute(IsoGameCharacter owner) {
    }

    @Override
    public void exit(IsoGameCharacter owner) {
        owner.clearVariable("ExtPlaying");
    }

    @Override
    public void animEvent(IsoGameCharacter owner, AnimEvent event) {
        if ("ExtFinishing".equalsIgnoreCase(event.m_EventName)) {
            owner.setVariable("ExtPlaying", false);
        }
    }
}
